<?php

class Core_Form_Admin_Mail_Transport_Ases extends Form
{
	function init()
	{
		// manage information
		$this -> setDesc('mail_transport_ases_form {desc}');
		
		$this -> addChild('text', 'title', array(
			'label' => 'Name',
			'required' => true,
			'desc' => 'set a name to remind when you have more than once mail transport service!'
		));

		$this -> addChild('yesno', 'is_active', array(
			'label' => 'Active',
			'required' => true,
			'value' => 1
		));

		$this -> addChild('yesno', 'is_default', array(
			'label' => 'Default',
			'required' => true,
			'value' => 1
		));

		$this -> addChild('yesno', 'is_locked', array(
			'label' => 'Locked',
			'required' => true,
			'value' => 1
		));

		// configure infomation
		
		$this -> addChild('text', 'fromAddress', array(
			'label' => 'From Address',
			'required' => true,
			'rules' => 'required'
		));
		
		
		$this -> addChild('text', 'fromName', array(
			'label' => 'From Name',
			'required' => true,
			'rules' => 'required'
		));
		
		
		$this -> addChild('text', 'key', array(
			'label' => 'Amazon SES Key',
			'required' => true,
			'rules' => 'required'
		));

		$this -> addChild('text', 'secret', array(
			'label' => 'Amazon SES Secret',
			'required' => true,
			'rules' => 'required'
		));
		
		
				

		$this -> addChild('group', 'buttons');

		$this -> buttons -> addChild('submit', '_submit') -> addChild('submit', '_test', array('label' => 'Test Transport')) -> addChild('cancel', '_cancel');
	}

}
